gdk: Add GDK_SOURCE_TRACKPOINT
authorMatthias Clasen <mclasen@redhat.com>
Wed, 1 Jun 2016 10:57:46 +0000 (06:57 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 1 Jun 2016 13:31:17 +0000 (09:31 -0400)
Having this as an input source type will let us do the heuristics
in the GDK backends.

https://bugzilla.gnome.org/show_bug.cgi?id=767100

gdk/gdkdevice.h

index 69fa99a01af879ccbafe7949db4bd7abb6a07d6b..b345e9db6768082b8707063229182e74b2f848e1 100644 (file)
@@ -47,6 +47,8 @@ typedef struct _GdkTimeCoord GdkTimeCoord;
  *     as a touchscreen or tablet. This device type has been added in 3.4.
  * @GDK_SOURCE_TOUCHPAD: the device is an indirect touch device, such
  *     as a touchpad. This device type has been added in 3.4.
+ * @GDK_SOURCE_TRACKPOINT: the device is a trackpoint. This device type has been
+ *     added in 3.22
  *
  * An enumeration describing the type of an input device in general terms.
  */
@@ -58,7 +60,8 @@ typedef enum
   GDK_SOURCE_CURSOR,
   GDK_SOURCE_KEYBOARD,
   GDK_SOURCE_TOUCHSCREEN,
-  GDK_SOURCE_TOUCHPAD
+  GDK_SOURCE_TOUCHPAD,
+  GDK_SOURCE_TRACKPOINT
 } GdkInputSource;
 
 /**